<!DOCTYPE html>
<html>
<head>
	<title>E8NET</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <include file="./App/Admin/View/Include/css.html" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/compiled/tables.css" type="text/css" media="screen" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>

    <include file="./App/Admin/View/Include/navbar.html" />
    <include file="./App/Admin/View/Include/menu.html" />


	<!-- main container -->
    <div class="content">

        <div class="container-fluid">
            <div id="pad-wrapper">

                <!-- users table -->
                <div class="table-wrapper users-table section">
                    <div class="row-fluid head">
                        <div class="span12">
                            <h4>教师管理</h4>
                        </div>
                    </div>

                    <div class="row-fluid filter-block">
                        <div class="pull-right">
                            <a href="{:U('Teacher/add')}" class="btn-flat pull-right success new-product add-user">+ 添加教师</a>
                        </div>
                    </div>

                    <div class="row-fluid">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th class="span1">ID</th>
                                <th class="span2">
                                    <span class="line"></span>基本信息
                                </th>
                                <th class="span2">
                                    <span class="line"></span>所属院系
                                </th>
                                <th class="span2">
                                    <span class="line"></span>教师职称
                                </th>
                                <th class="span2">
                                    <span class="line"></span>联系电话
                                </th>
                                <th class="span2 align-right">
                                    <span class="line"></span>ACTION
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="teacherList" id="teacher" >
                                <tr>
                                    <td>{$teacher.id}</td>
                                    <td>
                                        <img src="__PUBLIC__/Admin/img/contact-img.png" class="img-circle avatar hidden-phone" />
                                        <a href="#" class="name">{$teacher.email}</a>
                                        <span class="subtext">{$teacher.name}&nbsp;&nbsp;{$teacher.sex}</span>
                                    </td>
                                    <td>{$Think.session.admin.department_name}</td>
                                    <td>{$teacher.zc}</td>
                                    <td>{$teacher.telphone}</td>
                                    <td class="align-right">
                                        <a href="{:U('Teacher/edit',array('id'=>$teacher['id']))}">Edit</a>&nbsp;
                                        <a href="javascript:void(0);" onclick="return delConfirm('__APP__/Teacher/del/id/{$teacher.id}','对应教师将被删除')">Delete</a>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- end users table -->

                <div class="row ctrls">
                    <div class="pagination pull-right">
                        <ul>
                            {$page}
                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <!-- end main container -->

	<include file="./App/Admin/View/Include/js.html" />

</body>
</html>